import React, { Component } from 'react'

class ProductList extends Component {
  render() {
    const { products } = this.props
    return (
      <div>
        <p>ProductList</p>
        <ul>
          {
            products.map(item => {
              return <li key={item.id}>{ item.title }</li>
            })
          }
        </ul>
      </div>
    )
  }
}

export default ProductList